花費 26 ms
Adroid Studio 報 is not an enclosing class

代碼寫着寫着,突然報了這個錯誤:is not an enclosing class 什么鬼?怎么會這樣,然后,as提示我將這個類改為static 我代碼是這樣寫的: clas A{ c ...

Tue Jul 04 18:36:00 CST 2017 0 2366
Java:xxx is not an enclosing class

1. 錯誤原因 該錯誤一般出現在對內部類進行實例化時,例如 此時B是A的內部類,如果我們要使用如下語句實例化一個B類的對象: A.B b = new A.B() 則會報 ...

Wed May 30 18:32:00 CST 2018 0 1098

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM